<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>临近标体</title>
		<meta http-equiv="Pragma" CONTENT="no-cache">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="renderer" content="webkit">
		<link rel="stylesheet" href="${cxt!}/sb/plugins/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
		<script src="http://echarts.baidu.com/build/dist/echarts.js"></script>
		<%include("/common/include.html"){}%>
		<style type="text/css">
			.textbox {
				padding-right: 0px;
				background: url("${cxt !}/sb/themes/insdep/images/combo_arrow.png")
					no-repeat scroll right center transparent;
			}
		</style>
	</head>
	
	<body class="easyui-layout">
			<div data-options="region:'center',border: false" style="overflow-x:hidden;">
				<table id="leave_datagrid" class="easyui-datagrid" style="width:100%;height:auto;">
					<thead>	
						<tr>
							<th data-options="field:'name',width:80,align:'center'">姓名</th>
							<th data-options="field:'standardweight',width:80,align:'center'">标体</th>
							<th data-options="field:'nowweight',width:80,align:'center'">最新体重</th>
							<th data-options="field:'tzc',width:80,align:'center'">临近标体斤数</th>
							<th data-options="field:'firstdate',width:80,align:'center'">进店日期</th>
							<th data-options="field:'firstweight',width:80,align:'center'">初始体重</th>     
						</tr>
					</thead>
				</table>	
							
			</div>
			<div id="menuContent" class="menuContent" style="display: none; position: absolute;z-index: 10;">
				<ul id="organSelectTree" class="ztree" style="margin-top:0;width: 200px;"></ul>
			</div>	
			<script src="sb/js/statistic/turnoverRatioStoreStatistic/turnoverRatioStoreStatistic.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
		//快速查询面板自适应
		var $form = $("#leave_Form");		
		$(document).ready(function (){
			var $form_div = $("#leave_Form div");
			winResize($form_div);
			$(window).resize(function(){
				winResize($form_div);
			});
		});
		//加载表格
		function  loadTable()
		{	
			$('#leave_datagrid').datagrid({
				  title:name,
				  singleSelect:true,  
				  rownumbers: true,
				  fitColumns:true,
				  toolbar: '#tb',
				  collapsible: true,
				  url: "nearStaWeight/queryNearStaWeight",
				  queryParams: sy.serializeObject($form),
				  method: 'post'
			});
		} 
		//查询表格内容
		function  searchFrom()
		{
			loadTable();
		}
		//导出表格
		function customerInfo_xls(){
			var date = $("#date").val();
			var organIds = $("#organIds").val();
			var url = "${cxt!}/leaveCustomer/excel?date="+date+"&organIds="+organIds;
			window.location.href = url;
		}
		</script>
		
	</body>
</html>
